<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();
/*******basic*******/
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('basic',$postdata);
		exi('设置成功');
	}
	$footernav = array(
			array('title'=>'叫回收','icon'=>'icon-shouye','color'=>'#cc99ff','action'=>'jy_linehuishou/index/'),
			array('title'=>'我的订单','icon'=>'icon-viewlist','color'=>'#66cc99','action'=>'jy_huishou/order/'),
			array('title'=>'积分商城','icon'=>'icon-gifts','color'=>'#66cc99','action'=>'jy_creditshop/index/'),
			array('title'=>'我的信息','icon'=>'icon-compass','color'=>'#ff9933','action'=>'jy_huishou/message/'),
			array('title'=>'我的','icon'=>'icon-wo1','color'=>'#ff9933','action'=>'jy_huishou/home/'),
	);
	$return['item']=$this->plugin_setting('basic');
	$return['item']['footernav'] = !empty($return['item']['footernav']) ? $return['item']['footernav'] : $footernav;
	$return['item']['indeximg01']=$return['item']['indeximg01']?:'../addons/jy_linehuishou/resource/indeximg01.png';
	$return['item']['indeximg02']=$return['item']['indeximg02']?:'../addons/jy_linehuishou/resource/indeximg02.jpg';
	$hdps=array(
		array('picurl'=>'../addons/jy_linehuishou/resource/hdp01.jpg','url'=>'')
	);
	$return['item']['hdps']=$return['item']['hdps']?:$hdps;
	$htmls=array(
		'type'=>'edit',
		'desc'=>'参数设置',
		'edit_tab'=>true,
		'edits'=>array(
			array(
				'title'=>'页面信息',
				'list'=>array(
					array('type'=>'image','title'=>'首页回收按钮','name'=>'indeximg01'),
					array('type'=>'image','title'=>'首页回收要求','name'=>'indeximg02'),
				)
			),
			array(
				'title'=>'幻灯片',
					'list'=>array(
						array(
							'type'=>'array',
							'name'=>'hdps',
							'add_tip'=>'添加一个幻灯片',
								'list'=>array(
									array('type'=>'image','name'=>'picurl','title'=>'幻灯片图片'),
									array('type'=>'string','name'=>'url','title'=>'幻灯片链接'),
									
								),
								'details'=>array(
									array('type'=>'image','name'=>'picurl','title'=>'幻灯片图片','help'=>''),
									array('type'=>'string','name'=>'url','title'=>'幻灯片链接'),
									
								)
						)
					)
			),
			array(
				'title'=>'底部导航',
				'list'=>array(
								array('type'=>'array','name'=>'footernav','add_tip'=>'添加一个底部导航',
									'list'=>array(
										array('type'=>'string','name'=>'title','title'=>'导航名称'),
										array('type'=>'icon','name'=>'icon','from'=>'jinyunicon','title'=>'导航图标'),
										array('type'=>'string','name'=>'action','title'=>'导航链接'),
									),
									'details'=>array(
										array('type'=>'string','name'=>'title','title'=>'导航名称'),
										array('type'=>'icon','name'=>'icon','from'=>'jinyunicon','title'=>'导航图标'),
										array('type'=>'link','name'=>'action','from'=>'action','title'=>'导航链接'),
									)
								),
				)
			),
			/*array(
				'title'=>'板块导航',
					'list'=>array(
									array('type'=>'array','name'=>'bankuai','add_tip'=>'添加一个板块导航',
									'list'=>array(
										array('type'=>'string','name'=>'title','title'=>'导航名称'),
										array('type'=>'image','name'=>'img','title'=>'导航图片'),
										array('type'=>'string','name'=>'action','title'=>'导航链接'),							
									),
									'details'=>array(
										array('type'=>'string','name'=>'title','title'=>'导航名称'),
										array('type'=>'image','name'=>'img','title'=>'导航图片'),							
										array('type'=>'string','name'=>'action','title'=>'导航链接'),
									)
								),
					)
			),*/
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
/*******basic*******/
/*******op*******/
